<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <button class="layui-btn layui-btn-xs" onclick="edit({$right_v.id})">编辑</button>

    <script type="text/javascript">
        function edit(id){
            layer.open({
                type: 2,
                title: '添加',
                shade: 0.3,
                area: ['480px', '440px'],
                content: '/index.php/index/edit?id='+id
            });
        }
    </script>

</body>
</html>